#pragma once

#include <exception>
#include <string>
using std::exception;
using std::wstring;
using std::string;

namespace SubPlayer
{
    namespace Exceptions 
    {
        class SubtitleLoadException : public exception
        {
        public:
            SubtitleLoadException(const wstring & message);
            SubtitleLoadException(const string & message):errorMessage(message){}
            virtual const char * what() const {return errorMessage.c_str();}
        private:
            string errorMessage;
        };
    }
}